package com.ruoyi.materialCuttingPlan.domain;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 门窗类型定义对象 mcp_window_types
 * 
 * @author ruoyi
 * @date 2025-07-05
 */
public class McpWindowTypes extends McpBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 所属公司ID */
    @Excel(name = "所属公司ID")
    @NotNull(message = "所属公司不能为空")
    private Long companyId;

    /** 所属公司ID */
    @Excel(name = "所属公司名称")
    private String companyName;

    /** 门窗类型名称 */
    @Excel(name = "门窗类型名称")
    @NotBlank(message = "门窗类型名称不能为空")
    private String typeName;

    /** 门窗类型图片路径 */
    @Excel(name = "门窗类型图片路径")
    private String typeImage;

    /** 门窗用料公式变量信息 */
    @Valid
    private List<McpVariable> mcpVariableList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public void setTypeName(String typeName)
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }

    public void setTypeImage(String typeImage) 
    {
        this.typeImage = typeImage;
    }

    public String getTypeImage() 
    {
        return typeImage;
    }

    public List<McpVariable> getMcpVariableList()
    {
        return mcpVariableList;
    }

    public void setMcpVariableList(List<McpVariable> mcpVariableList)
    {
        this.mcpVariableList = mcpVariableList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("companyId", getCompanyId())
            .append("typeName", getTypeName())
            .append("typeImage", getTypeImage())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("mcpVariableList", getMcpVariableList())
            .toString();
    }
}
